package com.itheima.stock.service;

import com.itheima.stock.pojo.domain.AddRoleDomain;
import com.itheima.stock.pojo.domain.EditRoleDomain;
import com.itheima.stock.pojo.entity.SysRole;
import com.itheima.stock.pojo.vo.req.P;
import com.itheima.stock.pojo.vo.req.PageResult;
import com.itheima.stock.pojo.vo.resp.PermissionsVO;
import com.itheima.stock.pojo.vo.resp.R;

import java.util.List;

public interface RoleService {

    R<PageResult<SysRole>> RolePage(P p);

    R<List<PermissionsVO>> getPermissions();


    R addRole(AddRoleDomain addRoleDomain);

    R<List<String>> getRolePermission(String roleId);

    R editRole(EditRoleDomain editRoleDomain);

    R delRole(String roleId);

    R editRoleStatus(String roleId, Integer status);
}
